<?php
/**
 * Created by PhpStorm.
 * User: gc
 * Date: 2018/1/10
 * Time: 20:42
 */

namespace Builder;


class MealBuilder
{
    public function prepareVegMeal() : Meal{
        $meal = new Meal();
        $meal->addItem(new VegBurger());
        $meal->addItem(new Coke());
        return $meal;
    }

    public function prepareNonVegMeal() : Meal{
        $meal = new Meal();
        $meal->addItem(new ChickenBurger());
        $meal->addItem(new Pepsi());
        return $meal;
    }
}